package com.aliyun.messagemgt.common.constants;

/**
 * IDaaS 接口常量类
 *
 * @author byp
 * @date 2020/5/25
 * <a href="http://8.129.223.130/frontend/developer/#/docs/ud">数据同步接口api-测试环境</a>
 */
public class IDaaSApiConst {

    /**
     * POST
     * 获取token
     * ?client_id={client-id}&client_secret={client-secret}&scope=read&grant_type=client_credentials
     */
    public static final String ACCESS_TOKEN_URL = "/oauth/token?client_id={client_id}&client_secret={client_secret}&scope=read&grant_type=client_credentials";

    /**
     * GET
     * 获取组织机构列表
     * 后面加 ?id=5986176890912195413 表示获取指定组织列表
     */
    public static final String ORG_LIST = "/api/bff/v1.2/developer/scim/organization/list?access_token={access_token}";

    /**
     * GET
     * 获取根节点组织
     */
    public static final String ORG_ROOT = "/api/bff/v1.2/developer/scim/organization/root?access_token={access_token}";

    /**
     * GET
     * 获取组织机构的直属子级
     */
    public static final String ORG_CHILDREN = "/api/bff/v1.2/developer/scim/organization/children?access_token={access_token}";

    /**
     * GET
     * 获取账户列表
     */
    public static final String ACCOUNT_LIST = "/api/bff/v1.2/developer/scim/account/list?access_token={access_token}&start={start}&limit={limit}";

    /**
     * GET
     * 获取账户信息
     */
    public static final String ACCOUNT_DETAIL = "/api/bff/v1.2/developer/scim/account/detail?access_token={access_token}";

    /**
     * GET
     * 获取应用已经授权的组织机构及账户列表
     */
    public static final String APP_AUTH_LIST = "/api/bff/v1.2/developer/scim/application/authorized/list?access_token={access_token}";

}
